package com.my.cd.bridge;

/**
 * 主测试类
 */
public class MainTest {
    public static void main(String[] args) {
        ControlPad lgControlPad;
        lgControlPad = new ControlPad(new LGTVControl());
        lgControlPad.onoff();
        lgControlPad.nextChannel();
        lgControlPad.nextChannel();
        lgControlPad.preChannel();
        lgControlPad.onoff();

        ControlPad sonyControlPad;
        sonyControlPad = new ControlPad(new SonyTVControl());
        sonyControlPad.onoff();
        sonyControlPad.preChannel();
        sonyControlPad.preChannel();
        sonyControlPad.preChannel();
        sonyControlPad.onoff();

        ControlPadBetter sharpControlPad;
        sharpControlPad = new ControlPadBetter(new SharpTVControl());
        sharpControlPad.onoff();
        sharpControlPad.nextChannel();
        sharpControlPad.setChannel(9);
        sharpControlPad.setChannel(28);
        sharpControlPad.back();
        sharpControlPad.onoff();
    }

}
